package com.meisiabc.app.repository.db.manager;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meisiabc.app.repository.db.entity.CurriculumSchedule;
import com.meisiabc.app.repository.db.entity.FreeAudition;
import com.meisiabc.app.repository.db.mapper.FreeAuditionMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FreeAuditionManager extends ServiceImpl<FreeAuditionMapper, FreeAudition> {
    public FreeAudition selectLastOneByMobile(String mobile) {
        return getOne(new QueryWrapper<FreeAudition>().eq("phone", mobile).orderByDesc("id"));
    }


}
